import { defineComponent as B, createElementBlock as l, openBlock as o, normalizeStyle as A, normalizeClass as T, createCommentVNode as z, renderSlot as K, createElementVNode as n, ref as k, watch as H, withModifiers as W, withDirectives as N, vModelText as le, Fragment as D, renderList as I, toDisplayString as C, vShow as G, computed as Y, vModelSelect as R, createVNode as h, withCtx as w, createTextVNode as $, onMounted as oe, resolveComponent as F, createStaticVNode as ie } from "vue";
const ce = {
  key: 0,
  class: ""
}, ue = {
  key: 1,
  class: "scg-button-prefix"
}, de = {
  key: 2,
  class: "scg-button-suffix"
}, re = /* @__PURE__ */ B({
  __name: "index",
  props: {
    name: {
      type: String,
      default: "默认按钮"
    },
    color: {
      type: String,
      default: "white"
    },
    size: {
      type: String,
      default: "small",
      validator: (e) => e ? ["small", "medium", "large"].includes(e) : !0
    },
    border: {
      type: Boolean,
      default: !0
    },
    type: {
      type: String,
      default: "default",
      validator: (e) => e ? ["default", "primary", "success", "warning", "danger"].includes(e) : !0
    },
    prefixIcon: {
      type: String,
      default: ""
    },
    suffixIcon: {
      type: String,
      default: ""
    },
    prefixIconColor: {
      type: String,
      default: "white"
    },
    suffixIconColor: {
      type: String,
      default: "white"
    },
    loading: {
      type: Boolean,
      default: !1
    },
    disabled: {
      type: Boolean,
      default: !1
    }
  },
  emits: ["btnClick"],
  setup(e, { emit: y }) {
    const a = e, m = y, g = (i) => {
      if (a.disabled || a.loading) {
        i.preventDefault(), i.stopPropagation();
        return;
      }
      m("btnClick", { name: a.name, color: a.color });
    };
    return (i, c) => (o(), l("div", {
      class: T(["scg-button-container", {
        smallize: e.size == "small",
        mediumSize: e.size == "medium",
        largeSize: e.size == "large",
        border: e.border,
        defaultType: e.type === "default",
        primaryType: e.type === "primary",
        successType: e.type === "success",
        warningType: e.type === "warning",
        dangerType: e.type === "danger",
        disabledType: e.disabled,
        loadingType: e.loading
      }]),
      style: A({ color: e.color }),
      onClick: c[0] || (c[0] = (p) => g(p))
    }, [
      e.loading ? (o(), l("div", ce, c[1] || (c[1] = [
        n("span", { class: "iconfont icon-jiazai1 icon-loading" }, null, -1)
      ]))) : z("", !0),
      e.prefixIcon != "" ? (o(), l("div", ue, [
        n("span", {
          class: T(["iconfont csg-button-icon csg-button-icon-prefix", e.prefixIcon]),
          style: A({ color: e.prefixIconColor })
        }, null, 6)
      ])) : z("", !0),
      K(i.$slots, "prefix", {}, void 0, !0),
      K(i.$slots, "default", {}, void 0, !0),
      K(i.$slots, "suffix", {}, void 0, !0),
      e.suffixIcon != "" ? (o(), l("div", de, [
        n("span", {
          class: T(["iconfont csg-button-icon scg-button-icon-suffix", e.suffixIcon]),
          style: A({ color: e.suffixIconColor })
        }, null, 6)
      ])) : z("", !0)
    ], 6));
  }
}), P = (e, y) => {
  const a = e.__vccOpts || e;
  for (const [m, g] of y)
    a[m] = g;
  return a;
}, U = /* @__PURE__ */ P(re, [["__scopeId", "data-v-fc3aab9f"]]), ge = { class: "csg-input-box" }, _e = ["type", "placeholder", "value"], pe = {
  key: 0,
  class: "iconfont icon-yanjing"
}, me = {
  key: 1,
  class: "iconfont icon-biyanjing"
}, fe = /* @__PURE__ */ B({
  __name: "index",
  props: {
    placeholder: {
      type: String,
      default: "请输入内容"
    },
    round: {
      type: Boolean,
      default: !1
    },
    searchIcon: {
      type: String,
      default: ""
    },
    clearable: {
      type: Boolean,
      default: !0
      // 是否可清除
    },
    modelValue: {
      type: [String, Number],
      default: ""
    },
    size: {
      type: String,
      default: "medium",
      validator: (e) => e ? ["small", "medium", "large"].includes(e) : !0
    },
    type: {
      type: String,
      default: "text",
      validator: (e) => e ? ["text", "password", "textarea", "number"].includes(e) : !0
    }
  },
  emits: ["update:modelValue", "change", "update:type"],
  setup(e, { emit: y }) {
    const a = e, m = y, g = () => {
      m("update:modelValue", "");
    }, i = (f) => {
      f.key === "Enter" && m("change", f.target.value);
    }, c = k(a.type), p = k(!1);
    H(
      () => a.type,
      (f) => {
        f == "password" ? p.value = !1 : p.value = !0, c.value = f;
      },
      { immediate: !0, deep: !0 }
    );
    const S = () => {
      c.value = c.value === "password" ? "text" : "password";
    };
    return (f, t) => (o(), l("div", ge, [
      n("input", {
        class: T(["csg-input", {
          smallSize: e.size == "small",
          mediumSize: e.size == "medium",
          largeSize: e.size == "large",
          roundType: e.round,
          searchType: e.searchIcon != ""
        }]),
        type: c.value,
        placeholder: e.placeholder,
        value: e.modelValue,
        onInput: t[0] || (t[0] = (s) => f.$emit("update:modelValue", s.target.value)),
        onKeydown: t[1] || (t[1] = (s) => i(s))
      }, null, 42, _e),
      e.searchIcon ? (o(), l("span", {
        key: 0,
        class: T(["csg-input-inner-icon iconfont", e.searchIcon])
      }, null, 2)) : z("", !0),
      p.value ? (o(), l("div", {
        key: 1,
        class: "csg-clear-btn",
        onClick: W(g, ["stop"])
      }, t[2] || (t[2] = [
        n("span", { class: "iconfont icon-close" }, null, -1)
      ]))) : z("", !0),
      p.value ? z("", !0) : (o(), l("div", {
        key: 2,
        class: "csg-eye-btn",
        onClick: W(S, ["stop"])
      }, [
        c.value == "password" ? (o(), l("span", pe)) : z("", !0),
        c.value == "text" ? (o(), l("span", me)) : z("", !0)
      ]))
    ]));
  }
}), ve = /* @__PURE__ */ P(fe, [["__scopeId", "data-v-ba3e4f12"]]), ye = { class: "csg-select-wrapper" }, he = { class: "csg-select-dropdown" }, be = ["onClick"], Ce = /* @__PURE__ */ B({
  __name: "index",
  props: {
    round: {
      type: Boolean,
      default: !1
    },
    border: {
      type: Boolean,
      default: !1
    },
    placeholder: {
      type: String,
      default: "请选择"
    },
    options: {
      type: Array,
      default: () => []
    },
    modelValue: {
      type: [String, Number],
      default: ""
    },
    size: {
      type: String,
      default: "medium",
      validator: (e) => e ? ["small", "medium", "large"].includes(e) : !0
    }
  },
  emits: ["change"],
  setup(e, { emit: y }) {
    const a = e, m = y, g = k(!1), i = k("");
    k(!1);
    const c = () => {
      g.value = !g.value;
    };
    H(
      () => a.modelValue,
      (s) => {
        i.value = s;
      },
      { immediate: !0 }
    );
    const p = (s, v) => {
      i.value = s.label, g.value = !1, m("change", s);
    }, S = (s) => {
      c();
    }, f = () => {
      c();
    }, t = (s) => {
      console.log("键盘按下---->", s);
    };
    return (s, v) => (o(), l("div", ye, [
      n("div", {
        class: T(["csg-select", { roundType: e.round, borderType: e.border }])
      }, [
        N(n("input", {
          class: "csg-select-input",
          onFocus: f,
          onKeydown: t,
          type: "text",
          "onUpdate:modelValue": v[0] || (v[0] = (b) => i.value = b),
          placeholder: "请选择"
        }, null, 544), [
          [le, i.value]
        ]),
        n("span", {
          class: "iconfont icon-jinru",
          onClick: S
        })
      ], 2),
      N(n("div", he, [
        (o(!0), l(D, null, I(e.options, (b, _) => (o(), l("div", {
          class: "csg-select-dropdown-item",
          key: _,
          onClick: (j) => p(b)
        }, C(b.label), 9, be))), 128))
      ], 512), [
        [G, g.value]
      ])
    ]));
  }
}), Q = /* @__PURE__ */ P(Ce, [["__scopeId", "data-v-989cc8e0"]]), ke = { class: "csg-switch-label on" }, Se = { class: "csg-switch-label off" }, we = /* @__PURE__ */ B({
  __name: "index",
  props: {
    active: {
      type: Boolean,
      default: void 0
    },
    activeText: {
      type: String,
      default: "开启"
    },
    inactiveText: {
      type: String,
      default: "关闭"
    }
  },
  emits: ["switchChange"],
  setup(e, { emit: y }) {
    const a = k(!1), m = e;
    H(
      () => m.active,
      (c) => {
        a.value = c;
      },
      { immediate: !0 }
    );
    const g = y, i = () => {
      a.value = !a.value, g("switchChange", a.value);
    };
    return (c, p) => (o(), l("div", {
      class: T(["csg-switch", { active: a.value }]),
      onClick: i
    }, [
      p[0] || (p[0] = n("div", { class: "csg-slider" }, null, -1)),
      n("span", ke, C(e.activeText), 1),
      n("span", Se, C(e.inactiveText), 1)
    ], 2));
  }
}), $e = /* @__PURE__ */ P(we, [["__scopeId", "data-v-88d3c854"]]), xe = { class: "csg-date" }, De = ["value"], Ve = { class: "csg-date__calendar-header" }, ze = { class: "csg-date__month-year" }, Ie = { class: "csg-date__calendar-weekdays" }, Te = { class: "csg-date__calendar-days" }, Me = ["onClick"], Pe = {
  key: 0,
  class: "csg-date__time-selector"
}, Ne = { class: "csg-date__time-selector-item" }, Be = ["value"], Le = { class: "csg-date__time-selector-item" }, Fe = ["value"], Ye = { class: "csg-date__time-selector-item" }, Ee = ["value"], Ue = { class: "csg-date__footer" }, je = {
  __name: "index",
  props: {
    modelValue: {
      type: Date,
      default: null
    },
    valueType: {
      type: String,
      default: "date",
      // 'date'或'datetime'
      validator: (e) => ["date", "datetime"].includes(e)
    }
  },
  emits: ["update:modelValue", "change"],
  setup(e, { emit: y }) {
    const a = k(0), m = k(0), g = k(0), i = e, c = y;
    H(
      () => i.modelValue,
      (d) => {
        d && (a.value = d.getHours(), m.value = d.getMinutes(), g.value = d.getSeconds());
      }
    );
    const p = k(i.modelValue || /* @__PURE__ */ new Date()), S = k(!1), f = Y(() => i.modelValue ? i.modelValue.toLocaleDateString("zh-CN") : (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN")), t = Y(() => p.value.toLocaleDateString("zh-CN", {
      year: "numeric",
      month: "long"
    })), s = () => {
      if (!i.modelValue) return;
      const d = new Date(i.modelValue);
      d.setHours(a.value), d.setMinutes(m.value), d.setSeconds(g.value), c("update:modelValue", d), c("change", v(d, i.valueType));
    }, v = (d, u) => isNaN(d.getTime()) ? "无效日期" : u === "datetime" ? d.toLocaleString("zh-CN", {
      year: "numeric",
      month: "2-digit",
      day: "2-digit",
      hour: "2-digit",
      minute: "2-digit",
      second: "2-digit"
    }).replace(/\//g, "-") : d.toLocaleDateString("zh-CN").replace(/\//g, "-"), b = ["日", "一", "二", "三", "四", "五", "六"], _ = Y(() => {
      const d = p.value.getFullYear(), u = p.value.getMonth(), r = new Date(d, u, 1), J = new Date(d, u + 1, 0), E = [], se = r.getDay();
      for (let x = se - 1; x >= 0; x--) {
        const L = new Date(d, u, -x);
        E.push({
          day: L.getDate(),
          date: L,
          isCurrentMonth: !1
        });
      }
      for (let x = 1; x <= J.getDate(); x++) {
        const L = new Date(d, u, x);
        E.push({
          day: x,
          date: L,
          isCurrentMonth: !0
        });
      }
      const ae = 42 - E.length;
      for (let x = 1; x <= ae; x++) {
        const L = new Date(d, u + 1, x);
        E.push({
          day: x,
          date: L,
          isCurrentMonth: !1
        });
      }
      return E;
    }), j = () => {
      S.value = !S.value;
    }, V = () => {
      setTimeout(() => {
      }, 200);
    }, M = () => {
      p.value = new Date(
        p.value.getFullYear(),
        p.value.getMonth() - 1,
        1
      );
    }, O = () => {
      p.value = new Date(
        p.value.getFullYear(),
        p.value.getMonth() + 1,
        1
      );
    }, q = (d) => i.modelValue && d.getDate() === i.modelValue.getDate() && d.getMonth() === i.modelValue.getMonth() && d.getFullYear() === i.modelValue.getFullYear(), Z = (d) => {
      const u = /* @__PURE__ */ new Date();
      return d.getDate() === u.getDate() && d.getMonth() === u.getMonth() && d.getFullYear() === u.getFullYear();
    }, ee = (d) => {
      c("update:modelValue", d);
    }, te = () => {
      s(), S.value = !1;
    }, ne = () => {
      c("update:modelValue", /* @__PURE__ */ new Date()), c("change", /* @__PURE__ */ new Date()), a.value = 0, m.value = 0, g.value = 0;
    };
    return (d, u) => (o(), l("div", xe, [
      n("div", {
        class: "csg-date__input-wrapper",
        onClick: j
      }, [
        n("input", {
          type: "text",
          class: "csg-date__input",
          value: f.value,
          readonly: "",
          placeholder: "选择日期",
          onBlur: V
        }, null, 40, De),
        u[4] || (u[4] = n("span", { class: "csg-date__icon" }, [
          n("i", { class: "iconfont icon-calendar" })
        ], -1))
      ]),
      N(n("div", {
        class: "csg-date__calendar",
        onClick: u[3] || (u[3] = W(() => {
        }, ["stop"]))
      }, [
        n("div", Ve, [
          n("button", {
            class: "csg-date__nav-button",
            onClick: M
          }, "<"),
          n("span", ze, C(t.value), 1),
          n("button", {
            class: "csg-date__nav-button",
            onClick: O
          }, ">")
        ]),
        n("div", Ie, [
          (o(), l(D, null, I(b, (r) => n("div", {
            key: r,
            class: "csg-date__weekday"
          }, C(r), 1)), 64))
        ]),
        n("div", Te, [
          (o(!0), l(D, null, I(_.value, (r) => (o(), l("div", {
            key: r.date,
            class: T(["csg-date__day", {
              "csg-date__day--selected": q(r.date),
              "csg-date__day--today": Z(r.date),
              "csg-date__day--other-month": !r.isCurrentMonth
            }]),
            onClick: (J) => ee(r.date)
          }, C(r.day), 11, Me))), 128))
        ]),
        e.valueType === "datetime" ? (o(), l("div", Pe, [
          n("div", Ne, [
            N(n("select", {
              "onUpdate:modelValue": u[0] || (u[0] = (r) => a.value = r),
              onChange: s
            }, [
              (o(), l(D, null, I(24, (r) => n("option", {
                value: r - 1,
                key: r
              }, C(String(r - 1).padStart(2, "0")), 9, Be)), 64))
            ], 544), [
              [R, a.value]
            ]),
            u[5] || (u[5] = n("span", null, "时", -1))
          ]),
          n("div", Le, [
            N(n("select", {
              "onUpdate:modelValue": u[1] || (u[1] = (r) => m.value = r),
              onChange: s
            }, [
              (o(), l(D, null, I(60, (r) => n("option", {
                value: r - 1,
                key: r
              }, C(String(r - 1).padStart(2, "0")), 9, Fe)), 64))
            ], 544), [
              [R, m.value]
            ]),
            u[6] || (u[6] = n("span", null, "分", -1))
          ]),
          n("div", Ye, [
            N(n("select", {
              "onUpdate:modelValue": u[2] || (u[2] = (r) => g.value = r),
              onChange: s
            }, [
              (o(), l(D, null, I(60, (r) => n("option", {
                value: r - 1,
                key: r
              }, C(String(r - 1).padStart(2, "0")), 9, Ee)), 64))
            ], 544), [
              [R, g.value]
            ]),
            u[7] || (u[7] = n("span", null, "秒", -1))
          ])
        ])) : z("", !0),
        n("div", Ue, [
          h(U, {
            class: "csg-date__button csg-date__button--clear",
            onClick: ne
          }, {
            default: w(() => u[8] || (u[8] = [
              $(" 清除 ")
            ])),
            _: 1,
            __: [8]
          }),
          h(U, {
            class: "csg-date__button csg-date__button--confirm",
            onClick: te
          }, {
            default: w(() => u[9] || (u[9] = [
              $(" 确定 ")
            ])),
            _: 1,
            __: [9]
          })
        ])
      ], 512), [
        [G, S.value]
      ])
    ]));
  }
}, Ae = /* @__PURE__ */ P(je, [["__scopeId", "data-v-af8cf953"]]), Ke = { class: "csg-pagination" }, He = {
  key: 0,
  class: "csg-pagination-ellipsis"
}, Oe = ["onClick"], qe = { class: "csg-pagination__size" }, Re = { class: "csg-pagination__total" }, We = "black", Ge = /* @__PURE__ */ B({
  __name: "index",
  props: {
    total: {
      type: Number,
      required: !0,
      default: 0
    },
    pageSize: {
      type: Number,
      default: 10
    },
    currentPage: {
      type: Number,
      default: 1
    },
    pageRange: {
      type: Number,
      default: 1
    }
  },
  emits: ["update:pageSize", "update:currentPage", "change"],
  setup(e, { emit: y }) {
    const a = e, m = [
      { label: "10", value: 10 },
      { label: "20", value: 20 },
      { label: "30", value: 30 },
      { label: "40", value: 40 }
    ], g = y, i = (t) => {
      g("change", {
        pageSize: t.value,
        currentPage: 1
      });
    }, c = Y(() => Math.ceil(a.total / a.pageSize)), p = Y(() => a.pageSize), S = Y(() => {
      const t = [], s = a.pageRange, v = a.currentPage, b = c.value;
      if (b <= s * 2 + 1)
        for (let _ = 1; _ <= b; _++)
          t.push(_);
      else if (v <= s + 1) {
        for (let _ = 1; _ <= s * 2 + 1; _++)
          t.push(_);
        t.push("..."), t.push(b);
      } else if (v >= b - s) {
        t.push(1), t.push("...");
        for (let _ = b - s * 2; _ <= b; _++)
          t.push(_);
      } else {
        t.push(1), t.push("...");
        for (let _ = v - s; _ <= v + s; _++)
          t.push(_);
        t.push("..."), t.push(b);
      }
      return t;
    }), f = (t) => {
      t < 1 || t > c.value || t === a.currentPage || g("change", {
        pageSize: a.pageSize,
        currentPage: t
      });
    };
    return (t, s) => (o(), l("div", Ke, [
      h(U, {
        color: We,
        type: "primary",
        disabled: e.currentPage <= 1,
        onClick: s[0] || (s[0] = (v) => f(e.currentPage - 1))
      }, {
        default: w(() => s[3] || (s[3] = [
          $(" 上一页 ")
        ])),
        _: 1,
        __: [3]
      }, 8, ["disabled"]),
      (o(!0), l(D, null, I(S.value, (v) => (o(), l(D, { key: v }, [
        v === "..." ? (o(), l("span", He, " ... ")) : (o(), l("span", {
          key: 1,
          class: T(["csg-pagination", { "csg-pagination-active": v === e.currentPage }]),
          onClick: (b) => f(v)
        }, C(v), 11, Oe))
      ], 64))), 128)),
      h(U, {
        type: "primary",
        disabled: e.currentPage >= c.value,
        onClick: s[1] || (s[1] = (v) => f(e.currentPage + 1))
      }, {
        default: w(() => s[4] || (s[4] = [
          $(" 下一页 ")
        ])),
        _: 1,
        __: [4]
      }, 8, ["disabled"]),
      n("div", qe, [
        s[5] || (s[5] = n("span", null, "每页", -1)),
        h(Q, {
          modelValue: p.value,
          "onUpdate:modelValue": s[2] || (s[2] = (v) => p.value = v),
          options: m,
          onChange: i
        }, null, 8, ["modelValue"]),
        s[6] || (s[6] = n("span", null, "条", -1))
      ]),
      n("div", Re, "共 " + C(e.total) + " 条", 1)
    ]));
  }
}), X = /* @__PURE__ */ P(Ge, [["__scopeId", "data-v-b25143e1"]]), Je = { class: "csg-table" }, Qe = { class: "csg-table__header" }, Xe = { class: "csg-table__header__search" }, Ze = {
  key: 0,
  class: "csg-table__header__search__cell"
}, et = {
  key: 1,
  class: "csg-table__header__search__cell"
}, tt = {
  key: 2,
  class: "csg-table__header__search__cell"
}, nt = { class: "csg-table__header__search__action" }, st = { class: "csg-table__header__search__action" }, at = { class: "csg-table__use" }, lt = { class: "csg-table__use__left" }, ot = { class: "csg-table__body" }, it = { class: "csg-table__body__thead" }, ct = { class: "csg-table__body__thead__tr" }, ut = { class: "csg-table__body__action" }, dt = /* @__PURE__ */ B({
  __name: "index",
  props: {
    columns: {
      type: Array,
      default: () => []
    },
    tableList: {
      type: Array,
      default: () => []
    }
  },
  setup(e) {
    const y = k(!1), a = e;
    k([]);
    const m = k([]), g = k([]);
    k([]);
    const i = (f) => {
      let t = null;
      return a.tableList.forEach((s) => {
        for (const v in s)
          v == f && (t = s[v]);
      }), t;
    };
    oe(() => {
      m.value = a.columns.filter((f, t) => f.isSearch), g.value = a.columns.filter((f) => f.show).map((f, t) => ({
        ...f,
        score: t
      }));
    });
    const c = () => {
    }, p = () => {
      y.value = !0;
    }, S = (f) => {
    };
    return (f, t) => {
      const s = F("csg-search"), v = F("csg-select"), b = F("csg-date"), _ = F("csg-button"), j = F("csg-dialog");
      return o(), l(D, null, [
        n("div", Je, [
          n("div", Qe, [
            n("div", Xe, [
              (o(!0), l(D, null, I(m.value, (V, M) => (o(), l("div", { key: M }, [
                V.type === "input" ? (o(), l("div", Ze, [
                  n("span", {
                    style: A({ width: V.labelWidth })
                  }, C(V.label) + "：", 5),
                  h(s)
                ])) : z("", !0),
                V.type === "select" ? (o(), l("div", et, [
                  t[1] || (t[1] = n("span", null, "状态：", -1)),
                  h(v)
                ])) : z("", !0),
                V.type === "date" ? (o(), l("div", tt, [
                  t[2] || (t[2] = n("span", null, "时间：", -1)),
                  h(b)
                ])) : z("", !0)
              ]))), 128)),
              n("div", nt, [
                h(_, null, {
                  default: w(() => t[3] || (t[3] = [
                    $("查询")
                  ])),
                  _: 1,
                  __: [3]
                })
              ]),
              n("div", st, [
                h(_, null, {
                  default: w(() => t[4] || (t[4] = [
                    $("重置")
                  ])),
                  _: 1,
                  __: [4]
                })
              ])
            ])
          ]),
          n("div", at, [
            n("div", lt, [
              h(_, {
                prefixIcon: "icon-descending",
                class: "csg-table__use__left__cell",
                size: "large",
                onClick: p
              }, {
                default: w(() => t[5] || (t[5] = [
                  $("新增")
                ])),
                _: 1,
                __: [5]
              }),
              h(_, {
                prefixIcon: "icon-product-filter",
                class: "csg-table__use__left__cell",
                size: "large"
              }, {
                default: w(() => t[6] || (t[6] = [
                  $("导入")
                ])),
                _: 1,
                __: [6]
              }),
              h(_, {
                prefixIcon: "icon-response-fill",
                class: "csg-table__use__left__cell",
                size: "large"
              }, {
                default: w(() => t[7] || (t[7] = [
                  $("导出")
                ])),
                _: 1,
                __: [7]
              })
            ]),
            t[8] || (t[8] = ie('<div class="csg-table__use__right" data-v-aceba615><span class="csg-table__use__right__cell iconfont icon-ditie" data-v-aceba615></span><span class="csg-table__use__right__cell iconfont icon-ditie" data-v-aceba615></span><span class="csg-table__use__right__cell iconfont icon-ditie" data-v-aceba615></span><span class="csg-table__use__right__cell iconfont icon-ditie" data-v-aceba615></span></div>', 1))
          ]),
          n("div", ot, [
            n("table", null, [
              n("thead", it, [
                n("tr", ct, [
                  t[9] || (t[9] = n("th", null, "序号", -1)),
                  (o(!0), l(D, null, I(g.value, (V, M) => (o(), l("th", { key: M }, C(V.label), 1))), 128)),
                  t[10] || (t[10] = n("th", null, "操作", -1))
                ])
              ]),
              n("tbody", null, [
                (o(!0), l(D, null, I(e.tableList, (V, M) => (o(), l("tr", { key: M }, [
                  n("td", null, C(M + 1), 1),
                  (o(!0), l(D, null, I(g.value, (O, q) => (o(), l("td", { key: q }, C(i(O.props)), 1))), 128)),
                  n("td", ut, [
                    h(_, {
                      prefixIcon: "icon-zoom-in",
                      size: "large",
                      type: "primary",
                      onClick: S
                    }, {
                      default: w(() => t[11] || (t[11] = [
                        $("查看")
                      ])),
                      _: 1,
                      __: [11]
                    }),
                    h(_, {
                      prefixIcon: "icon-catalog",
                      size: "large",
                      type: "danger",
                      onClick: S
                    }, {
                      default: w(() => t[12] || (t[12] = [
                        $("删除")
                      ])),
                      _: 1,
                      __: [12]
                    }),
                    h(_, {
                      prefixIcon: "icon-bianji",
                      size: "large",
                      type: "warning",
                      onClick: S
                    }, {
                      default: w(() => t[13] || (t[13] = [
                        $("修改")
                      ])),
                      _: 1,
                      __: [13]
                    })
                  ])
                ]))), 128))
              ])
            ])
          ])
        ]),
        h(X),
        h(j, {
          modelValue: y.value,
          "onUpdate:modelValue": t[0] || (t[0] = (V) => y.value = V),
          onConfirm: c
        }, null, 8, ["modelValue"])
      ], 64);
    };
  }
}), rt = /* @__PURE__ */ P(dt, [["__scopeId", "data-v-aceba615"]]), gt = { class: "csg-dialog" }, _t = { class: "csg-dialog__wrapper" }, pt = { class: "csg-dialog__header" }, mt = { class: "csg-dialog__body" }, ft = { class: "csg-dialog__footer" }, vt = /* @__PURE__ */ B({
  __name: "index",
  props: {
    modelValue: {
      type: Boolean,
      required: !0
    },
    title: {
      type: String,
      default: "操作提示"
    }
  },
  emits: ["update:modelValue", "confirm"],
  setup(e, { emit: y }) {
    const a = y, m = () => {
      a("update:modelValue", !1);
    };
    return (g, i) => {
      const c = F("csg-button");
      return N((o(), l("div", gt, [
        n("div", {
          class: "csg-dialog__mask",
          onClick: m
        }),
        n("div", _t, [
          n("div", pt, [
            n("h3", null, C(e.title), 1),
            n("span", {
              type: "text",
              onClick: m,
              class: "csg-dialog__close"
            }, " × ")
          ]),
          n("div", mt, [
            K(g.$slots, "default", {}, void 0, !0)
          ]),
          n("div", ft, [
            h(c, {
              type: "warning",
              onClick: m
            }, {
              default: w(() => i[1] || (i[1] = [
                $("取消")
              ])),
              _: 1,
              __: [1]
            }),
            h(c, {
              type: "primary",
              onClick: i[0] || (i[0] = (p) => g.$emit("confirm"))
            }, {
              default: w(() => i[2] || (i[2] = [
                $("确认")
              ])),
              _: 1,
              __: [2]
            })
          ])
        ])
      ], 512)), [
        [G, e.modelValue]
      ]);
    };
  }
}), yt = /* @__PURE__ */ P(vt, [["__scopeId", "data-v-af9c0dd9"]]), ht = [
  { name: "CsgButton", component: U },
  { name: "CsgSearch", component: ve },
  { name: "CsgSelect", component: Q },
  { name: "CsgSwitch", component: $e },
  { name: "CsgDate", component: Ae },
  { name: "CsgTable", component: rt },
  { name: "CsgPagination", component: X },
  { name: "CsgDialog", component: yt }
], bt = function(e) {
  ht.forEach(({ name: y, component: a }) => {
    e.component(y, a);
  });
}, kt = { install: bt };
export {
  U as CsgButton,
  ve as CsgSearch,
  kt as default
};
